package com.swdegao.iot.netty.entity;

import org.springframework.stereotype.Component;

/**
 * 解析获取I/O数据，封装到HandlerMessage
 * @Author:只会走路的小鸟
 * @Date:2018/10/26
 * @version 001
 */
@Component
public class Parameter {
	public static String imei_info = "_imei_info";
	public static String communication_tcp = "TCP";
	public static String communication_udp = "UDP";
	public static String on_off_info = "_on_off_info";
	public static String imei_info_updata = "_imei_info_updata";
	public static String imei_info_downdata = "_imei_info_downdata";
	public static String imei_info_requestdata = "_imei_info_requestdata";
	public static String imei_callbackurl = "_callbackurl";
	public static String topic_callbackurl = "_callbackurl_";
	public static String imei_waitingpresetcommand = "_waitingpresetcommand";//等待处理的命令
	public static String imei_presetcommand = "_presetcommand";//已经处理结束的命令
	public static String imei_presetcommand_flag_start = "01";//已经处理结束的命令
	public static String imei_presetcommand_flag_ok = "73";//已经处理结束的命令
	public static String imei_presetcommand_status_ok = "1";//已经处理结束的命令
	public static String imei_presetcommand_flag_error = "74";//已经处理结束的命令
	public static String imei_presetcommand_status_error = "0";//已经处理结束的命令
	public static String presetCommandNum = "3";//预置命令处理上线
	public static String dongjian_fourgbig_Topic = "dongjianfourgbigTopic";//东健主提
	public static String dongjian_fourgbig_tcp_tag = "dongjian_fourgbig_tcp_tag";//东健标签
	public static String topic = "guoxindtunettyTopic";//默认主题
	public static String dg_terminals_Topic = "degaonettyTopic";//默认主题
	public static String dg_tcp_tag = "dg_tcp_tag";//默认标签
	public static String topic_redis = "dggprs";//默认主题
	public static String tag = "tagTwo";//默认标签
	public static String guoxin_udp_topic = "guoxinnb-udpnettyTopic";//国信UDP主题
	public static String online_des = "上线";
	public static String reonline_des = "再次上线";
	public static String offline_des = "下线";
	public static String reoffline_des = "心跳过期";
	public static String call_back_url = "http://120.55.58.209:8889/nettycallback/report-dev-callback";//在没有设置回调情况下，走默认回调
	public static String regUrl = "^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\\\/])+$";
	public static int heartbeat_cycle = 60;//心跳周期
	public static int heartbeat_delay_num = 3;//周期
	public static int heartbeat_cycle_check = 120;//心跳检查时间
	public static int outtime_hear = 25;//秒,问题响应延迟
	public static int command_delay_time = 50;//秒
	public static byte[] separator = {0x0d,0x0a};//秒

	@SuppressWarnings("unused")
	private static final int READ_IDEL_TIME_OUT = 120; // 读超时
	@SuppressWarnings("unused")
	private static final int WRITE_IDEL_TIME_OUT = 5;// 写超时
	@SuppressWarnings("unused")
	private static final int ALL_IDEL_TIME_OUT = 7; // 所有超时


	//千宝通
	public static String QianBaoTong_RocektMq = "QianBaoTong_Xb_Concentrator_Topic";//千宝通转发mq名称
	public static String QianBaoTong_RocektMq_Tag = "Tcp";//千宝通转发mq名称

}
